package com.jt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)//链式连接
@TableName("demo_user")//实现对象和表的映射
public class User {
    @TableId(type = IdType.AUTO)//设置主键自增
    private Integer id;
//    @TableField("name")//属性对象与表名映射
    private String name;

    private Integer age;

    private String sex;
}
